<?php
namespace app\index\model;
use think\Model;
use think\Db;
class Investhistory extends Model
{
	//查询投资记录
	public function show($uid,$page,$status)
	{
		$limit = ($page-1)*5;
		$sql = "select * from Investhistory where uid = $uid and status = $status order by time limit $limit,5";
		$data = Db::query($sql);
		//返回数据
		return $data;
	}
}